package com.aspose.cells.a.d;

import java.util.HashMap;

public class zav {
   public float a;
   private int b;
   private com.aspose.cells.b.a.b.zg c;
   private zfq d;
   private float e;
   private float f;
   private float g;
   private static com.aspose.cells.b.a.b.zv h = com.aspose.cells.b.a.b.zv.c();
   private static HashMap i = new HashMap();
   private String j = "";
   private static HashMap k = new HashMap();

   public zav(String var1, float var2, int var3) throws Exception {
      this.b = var3;
      this.a = var2;
      this.d = zfs.b(var1, var3, false);
      this.j = var1;
      float var4 = this.d.a((float)this.d.y(), var2);
      if (var4 < Float.MIN_VALUE) {
         this.e = this.d.a(var2);
         this.f = this.e * 0.8F;
         this.g = this.e * 0.2F;
      } else {
         this.e = this.d.a(var2);
         this.f = this.d.a((float)this.d.i(), var2);
         this.g = this.d.a((float)this.d.j(), var2);
      }

   }

   public String a() {
      return this.j;
   }

   public float b() {
      return this.a;
   }

   public int c() {
      return this.b;
   }

   public boolean d() {
      return (this.c() & 1) != 0;
   }

   public boolean e() {
      return (this.c() & 2) != 0;
   }

   public boolean f() {
      return (this.c() & 8) != 0;
   }

   public boolean g() {
      return (this.c() & 4) != 0;
   }

   public float h() {
      return this.f;
   }

   public float i() {
      return this.g;
   }

   public zfq j() {
      return this.d;
   }

   public com.aspose.cells.b.a.b.zg k() {
      if (this.c == null) {
         try {
            this.c = new com.aspose.cells.b.a.b.zg(this.a(), this.a, this.c() & 11, 3, (byte)-128, true);
         } catch (Exception var5) {
            ;
         }
      }

      if (this.c == null) {
         try {
            this.c = new com.aspose.cells.b.a.b.zg(this.a(), this.a, 0);
         } catch (Exception var4) {
            ;
         }
      }

      if (this.c == null) {
         try {
            this.c = new com.aspose.cells.b.a.b.zg(this.a(), this.a, 1);
         } catch (Exception var3) {
            ;
         }
      }

      if (this.c == null) {
         try {
            this.c = new com.aspose.cells.b.a.b.zg(this.a(), this.a, 2);
         } catch (Exception var2) {
            this.c = new com.aspose.cells.b.a.b.zg("Arial", this.a, this.c());
         }
      }

      return this.c;
   }

   public static com.aspose.cells.b.a.b.zt a(String var0, zav var1) {
      float var2 = var1.j().a((float)var1.j().y(), var1.a);
      float var3 = var1.j().c(var0, var1.a);
      return new com.aspose.cells.b.a.b.zt(var3, var2);
   }

   public static com.aspose.cells.b.a.b.zt b(String var0, zav var1) throws Exception {
      float var2 = var1.j().a((float)var1.j().y(), var1.a);
      float var3 = var1.j().a(var0, var1.a);
      return new com.aspose.cells.b.a.b.zt(var3, var2);
   }

   public static zav a(String var0, float var1, int var2) throws Exception {
      HashMap var3 = k;
      synchronized(k) {
         String var4 = (String)k.get(var0 + var2);
         if (var4 != null && var4.length() != 0) {
            var0 = var4;
         } else {
            zfq var5 = zfs.b(var0, var2, false);
            k.put(var0 + var2, var5.b());
            var0 = var5.b();
         }
      }

      int var11 = b(var0, var1, var2);
      HashMap var10 = i;
      synchronized(i) {
         zav var12 = (zav)i.get(var11);
         if (var12 == null) {
            var12 = new zav(var0, var1, var2);
            i.put(var11, var12);
         }

         return var12;
      }
   }

   private static int b(String var0, float var1, int var2) {
      return var0.hashCode() ^ (new Float(var1)).hashCode() ^ var2;
   }

   static {
      h.b(h.d() | 2048);
   }
}
